class LoginModel {
 late String token;
 late bool isHavingInfo;
 late String avatar;
 late int isOpenAb;

  LoginModel({this.token = "", this.isHavingInfo = false, this.avatar = "", this.isOpenAb = 0});

  LoginModel.fromJson(Map<String, dynamic> json) {
    token = json['token']??"";
    isHavingInfo = json['is_having_info']??false;
    avatar = json['avatar']??"";
    isOpenAb = json['is_open_ab']??0;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['token'] = token;
    data['is_having_info'] = isHavingInfo;
    data['avatar'] = avatar;
    data['is_open_ab'] = isOpenAb;
    return data;
  }
}
